package com.eascs.web.demo.sso;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.eascs.app.log.Logger;
import com.eascs.app.log.LoggerFactory;
import com.eascs.site.controller.BaseRestController;
import com.eascs.site.view.BaseRestResult;
import com.eascs.site.view.MessageRestResult;
import com.eascs.web.sso.User;
import com.eascs.web.sso.UserHolder;

@RestController
public class SsoActionRestController extends BaseRestController {
	private final Logger logger = LoggerFactory.getLogger(SsoActionRestController.class);

	@RequestMapping(value = "/demo/sso/ajax/assertion")
	public BaseRestResult<User> assertion() {
		User user = UserHolder.getUser();
		return MessageRestResult.buildRestResult(user);
	}

}